package com.tstudy.laoshibang.base;

import android.graphics.Bitmap;

/**
 * 常量类
* @CopyRight weitaming.com
* @author wuyahui
* @E-mail wuyahui@ispied.com
* @version 1.0.0
* @Date 2015-06-03 13:44:15
 */
public class CONSTANT {
	public static final String DEVICE_TYPE="android";
	public static final String APP_LANGUAGE = "zh_cn";
	public final static boolean IS_ONLINE = true;
//	public static final String WEBHOST = "http://119.254.89.3/";
//	public static final String WEBHOST ="http://alpha.weitaming.com/api/";
//	public static final String DEBUG_PLATFORM_HOST = "http://192.168.253.1/v1.0.0/outside";
//	public static final String RELEASE_PLATFORM_HOST = "http://192.168.253.1/v1.0.0/outside";
//	public static final String PLATFORM_HOST = IS_ONLINE?RELEASE_PLATFORM_HOST:DEBUG_PLATFORM_HOST;
//	public static final String DEBUG_WEBHOST ="http://182.92.177.153:8080";
//	public static final String DEBUG_WEBHOST ="http://172.27.35.1";
	public static final String DEBUG_WEBHOST ="http://192.168.30.241";
//	public static final String RELEASE_WEBHOST ="http://123.57.67.226";
	public static final String RELEASE_WEBHOST ="http://www.teacherfamily.net";
	public static final String WEBHOST =IS_ONLINE?RELEASE_WEBHOST:DEBUG_WEBHOST;
	public static final String WEBHOST_MOBILE =WEBHOST + "/mobile";
	
	//平台app
	public static final String PLATFORM_APP_CODE = "557b926f756a352f51c47837";
	public static final String PLATFORM_AUTH_ID = "557b929b756a352f51c47839";
	public static final String PLATFORM_AUTH_SECRET = "MmxoXmZuKCN4OGJoKSV5NjNoaWplOHVtXndrXnJ3NiE=";
	
	//weibo
	public static final String WEIBO_APP_KEY = "1854643874";
	public static final String WEIBO_APP_SECKET = "d843a20f6e3bc90a224c28e7bb8b74dc";
	public static final String REDIRECT_URL = "http://tstudy.lsb.idook.cn/index.html";
	//qq 
	public static final String QQ_APP_ID= "1104711908";
	public static final String QQ_APP_SECKET = "aqacGcSuulu9T9G9";
	//wechat app_id
	public static final String WECHAT_APP_ID = "wx17c9a99351b86623";
	public static final String WECHAT_APP_SECRET = "6d7d1b0524002aa1903381c16aa7f8dd";
//		public static final String WECHAT_APP_ID = "wx9250fb902d3136ab";//test
	//baidu map key
	public static final String DEBUG_BAIDU_MAP_KEY = "bzGvvUaHWTVq4D5FGcG1hCEa";
	public static final String RELEASE_BAIDU_MAP_KEY = "SmaG94vo6Krz45VWLnkBTVcA";//signed
//	public static final String BAIDU_MAP_KEY =  IS_ONLINE? RELEASE_BAIDU_MAP_KEY:DEBUG_BAIDU_MAP_KEY;
//	
	public static final String  LANGUAGE_EN = "en";
	public static final String  LANGUAGE_CHS = "zh-Hans";
	
	/**
	 * Feed action VIP
	 */
	public static final String VipLevelImages[] = {
		    "vip_size1p",
		    "vip_size1g",
		    
		    "vip_size2p",
		    "vip_size2g",
		    
		    "vip_size3p",
		    "vip_size3g",
		};
	public enum LoadType {
		load_first, load_more, load_refresh,
	}
	
	public static final int AVATAR_QUALITY = 80;
	/**
	 * This is the default rotation of the camera. 
	 */
	public static final int CAMARA_ROTATION_DEGREE = 90;
	
	public static Bitmap mCameraBM;
	public static interface ARGS{
		String KEYWORD = "keyword";
		String CONDITION = "condition";
		String MORE_INFO = "more_info";
		String FILTER_STR = "filter_str";
		String ACTIVE_ID = "active_id";
		String WEIKE_ID = "weike_id";
		String COMMUNITY_ID = "community_id";
		String IS_SIMPLE = "is_simple";
		String IS_SEARCH = "is_search";
		String IS_SHOW_BOTTOM = "is_show_bottom";
		String IS_SHOW_PRODUCT = "is_show_product";
		String IS_SHOW_TITLE = "is_show_title";
		String USER_NO="user_id";
		String GROUP_ID="group_id";
		String GROUP_NAME="group_name";
		String MOBILE="mobile";
		String SMS_ID="sms_id";
		String ACCOUNT = "account";
		String VERIFY_CODE="verify_code";
		String USER_NAME="user_name";
		String PASSWORD="password";
		String IS_PASSWORD = "is_password";
		String LOGIN_RESULT = "login_result";
		String APPLY_RESULT = "apply_result";
		String USER_PROFILE="user_profile";
		String FRAGMENT_ID="fragment_id";
		String USER="user";
		String URL="url";
		String BUNDLE="bundle";
		String MSG_ID = "msg_id";
		String FILTER_BASE = "filter_base";
		String REGION = "region";
		String RANGE = "range";
		String LAT="lat";
		String LON="lon";
		String TITLE="title";
		String SOURCE = "source";
		String NAME = "name";
		String VALUE="value";
		String TYPE = "type";
		String IS_IN_TAB="is_in_tab";
		String IS_FROM_SETTING="is_from_setting";
		String IS_FIRST_SETTING = "is_just_city";
		String NUM_FOUND = "num_found";
		String IS_LOGIN="is_login";
		String IS_NEW_USER="is_new_user";
		String IS_LANUCH = "is_launch";
		String TAB_INDEX = "tab_index";
		String SHOW_MESSAGE = "show_message";
		String COUNT="count";
		String POSITION="position";
		String IS_PORTRAIT = "is_portrait";
		String IS_CAMERA = "is_camera";
		String IS_COMMENT = "is_comment";
		String HAS_UNREAD = "has_unread";
		String ORIENTATION = "orientation";
		String SEARCH_STR = "search_str";
		String FILE_PATH = "file_path";
		String CURRENT_INDEX = "current_index";
		String TAB_FRAGMENT_ID = "tab_fragment_id";
		String ASSO_ID = "asso_id";
		String BUSS_TYPE = "biss_type";
		String IS_OFFICIAL = "is_official";
	}
	public static interface OAUTH{
		String ACCESS_TOKEN = "access_token";
		String OPEN_ID = "openid";
		String UNION_ID="unionid";
		String EXPIRES_IN = "expires_in";
		String REFRESH_TOKEN = "refresh_token";
		String DOUBAN_USER_ID = "douban_user_id";
		String BIND_TIME = "BIND_TIME";
		String SINA_ID = "SINA_ID";
	}
	
	public static final int SHARE_TYPE_SINA = 1;
	public static final int SHARE_TYPE_WECHAT = 2;
	public static final int SHARE_TYPE_QZONE = 3;
	
	public static final int NETWORK_TYPE_NONETWORK = 0;
	public static final int NETWORK_TYPE_WAP = 1;
	public static final int NETWORK_TYPE_MOBILE = 2;
	public static final int NETWORK_TYPE_WIFI = 3;
	
	public static final int CREATE_LOOK_TITLE_LIMIT_LENGTH = 120;
	public static final int WEIBO_SSO_REQUEST_CODE = 32973;
	public static final int REQUEST_CODE_ALBUM = 101;
	
	public static final int SHOW_TOAST_LENGTH = 5000;
	public static final int LOAD_DATA_DELAY_TIME = 300;
	public static final int POP_DELAY_TIME = 100;
	
	public static interface RESPONSE{
		String STATUS = "status";
		String RESULT = "result";
		String DATA = "data";
		String ERROR = "error";
		String PAGINATION = "pagination";
		String RESPONSE = "response";
		String FORMAT_JSON = "json";
		String ATTR_NAME_SIZE = "sizeId";
		String ATTR_NAME_COLOR = "colorId";
		String ATTR_NAME_WEIGHT = "weightId";
	}
	
	final public static int VERIFY_STATE_UNSEND = 0;
	final public static int VERIFY_STATE_SENDING = 1;
	final public static int VERIFY_STATE_RESEND = 2;
	final public static int VERIFY_STATE_SENDED = 3;
	
	public static final float MAP_DEFAULT_ZOOM = 13f;
	
	public static final int LOGIN_TYPE_LAPSHIBANG = 0;
	public static final int LOGIN_TYPE_SINA = 1;
	public static final int LOGIN_TYPE_WECHAT = 2;
	public static final int NO_ERROR_STATUS = 0;
	
		//用户来源
		public static final int USER_SOURCE_LAOSHIBANG = 0;
		public static final int USER_SOURCE_WECHAT = 1;
		public static final int USER_SOURCE_WEIBO = 2;
		public static final int USER_SOURCE_QQ = 3;
		public static final int USER_SOURCE_WECHAT_PUBLIC_ACCOUNT = 4;
		
		//介质来源
		public static final int MEDIA_SOURCE_IOS = 1;
		public static final int MEDIA_SOURCE_ANDROID = 2;
		public static final int MEDIA_SOURCE_WEB = 3;
		
		//用户类型
		public static final int USER_ROLE_TEACHER = 1;
//		public static final int USER_ROLE_STUDENT = 2;
		public static final int USER_ROLE_PATRIARCH = 3;
		
		//获取验证码类型
		public static final int VALIDATE_NO_TYPE_REGIST = 0;
		public static final int VALIDATE_NO_TYPE_BIND = 2;
		public static final int VALIDATE_NO_TYPE_FORGET_PASSWORD = 1;
		
	//操作类型	
	final public static int OP_EQUALS = 1;	//等于
	final public static int OP_LIKE = 2;	//like
	final public static int OP_LESS_THAN = 3;	//<
	final public static int OP_LESS_THAN_EQUALS = 4;	//<= 
	final public static int OP_MORE_THAN = 5;	//>
	final public static int OP_MORE_THAN_EQUALS = 6;	//>=
	final public static int OP_BETWEEN = 7;	//between
	final public static int OP_IN = 8;	//in
	final public static int OP_NOT_EQUALS = 9;
	final public static int OP_NULL = 10;	
	
	public static interface PARAMS{
		String EVENTTYPE = "eventType";
	    String ENTITY = "entity";
	    String GROUP_ID = "groupId";
	}
	
	public static interface EVENT_TYPE{
		String REGIST = "laoshibang.mobile.teacher.register";
		String LOGIN = "laoshibang.mobile.teacher.login";
		String THRID_LOGIN="laoshibang.mobile.teacher.source.login";
		String LOGOUT = "laoshibang.mobile.teacher.exit";
		String SEND_VALIDATE_CODE = "laoshibang.mobile.teacher.send.validate.code";
		String RESET_PASSWORD_VALIDATE = "laoshibang.mobile.teacher.check.validate.code";
		String BIND_MOBILE = "laoshibang.mobile.teacher.mobile.bind";
		String RESET_PASSWORD = "laoshibang.mobile.teacher.update.password";
		String MODIFY_PASSWORD = "laoshibang.mobile.teacher.password.update";
		String GET_USER_INFO = "laoshibang.mobile.teacher.query.detail";
		String UPDATE_USER_INFO = "laoshibang.mobile.teacher.update";
		String COMMIT_FEEDBACK="laoshibang.mobile.teacher.feedback.save";
		String GET_QINIU_TOKEN = "qiniu.uptoken.get";
		
		String ACTIVE_LIST = "laoshibang.mobile.teacher.activity.query.list";
		String ACTIVE_DETAIL = "laoshibang.mobile.teacher.activity.query.detail";
		String ACTIVE_APPLY = "laoshibang.mobile.teacher.activity.baoming.save";
		String ACTIVE_CAGEGORY = "laoshibang.mobile.teacher.activity.classify.query.list";
		String WEIKE_LIST = "laoshibang.mobile.teacher.course.query.list";
		String WEIKE_DETAIL = "laoshibang.mobile.teacher.course.query.detail";
		String COMMUNITY_LIST = "laoshibang.mobile.teacher.tucao.query.list";
		String COMMUNITY_DETAIL = "laoshibang.mobile.teacher.tucao.detail";
		String CREATE_COMMUNITY = "laoshibang.mobile.teacher.my.tucao.save";
		String DELETE_COMMUNITY = "laoshibang.mobile.teacher.my.tucao.del";
		String COMMUNITY_COMMENT = "laoshibang.mobile.teacher.comment.save";
		String COMMUNITY_COMMENT_LIST = "laoshibang.mobile.teacher.comment.query.list";
		String COMMUNITY_COMMENT_DELETE = "laoshibang.mobile.teacher.comment.del";
		String MY_COMMUNITY = "laoshibang.mobile.teacher.my.tucao.query.list";
		String COMMUNITY_MESSAGE_LIST = "laoshibang.mobile.teacher.my.comment.query.list";
		String COMMUNITY_MESSAGE_READ = "laoshibang.mobile.teacher.my.tucao.read";
		String SYSTEM_MESSAGE_LIST = "laoshibang.mobile.teacher.sysmsg.query.list";
		String SYSTEM_MESSAGE_READ = "laoshibang.mobile.teacher.sysmsg.read";
		String SYSTEM_MESSAGE_DETAIL = "laoshibang.mobile.teacher.sysmsg.detail";
		String LOVE_ACTOIN = "laoshibang.mobile.teacher.praise.save";
		String VIEW_ACTION = "laoshibang.mobile.teacher.access.save";
		String PLAY_VIDEO = "laoshibang.mobile.teacher.play.save";
		String QUERY_ADDRESS = "laoshibang.mobile.teacher.area.query.list";
		String QUERY_SCHOOL = "laoshibang.mobile.teacher.school.query.list";
		String PUSH_BIND = "laoshibang.mobile.teacher.bd.ts.user.bind";
		String PUSH_UNBIND = "laoshibang.mobile.teacher.bd.ts.user.ubind";
		String FILE_UPLOAD = "laoshibang.mobile.teacher.upload.file";
		String GROUP_DETAIL = "laoshibang.mobile.teacher.group.detail";
		String GROUP_SELECT = "laoshibang.mobile.teacher.select.group.list";
		String GROUP_JOIN = "laoshibang.mobile.teacher.join.group.list";
		String GRUOP_RECOMMEND_LIST = "laoshibang.mobile.teacher.tj.group.list";
		String GROUP_LIST = "laoshibang.mobile.teacher.group.list";
		String GROUP_APPLY = "laoshibang.mobile.teacher.group.apply";
		String GROUP_EXIT = "laoshibang.mobile.teacher.group.exit";
		String GROUP_OFFICIAL = "laoshibang.mobile.teacher.group.gf";

	}
	
	public static interface EVENT_VALUE{
		String GROUP_AGREE = "同意进入群组";
		String GROUP_REJECT = "拒绝进入群组";
		String GROUP_REMOVE = "移出群组";
	}
	
	public static final String MESSAGE_PUSH_NOTIFICATION_ACTION = "message_push_notification_action";

	public static int SEX_MALE = 1;
	public static int SEX_FEMALE = 2;
	
//	0: 活动；1：微课件；2：吐槽
	final public static int ASSO_TYPE_ACTIVE = 0;
	final public static int ASSO_TYPE_WEIKE = 1;
	final public static int ASSO_TYPE_COMMUNITY = 2;
	final public static int PLAY_TYPE_WEIKE = 0;
	
	public static int LOVE_ACTION = 1;
	public static int UNLOVE_ACTION = 0;
	public static int MEDIA_TYPE_PICTURE = 1;
	public static int MEDIA_TYPE_VIDEO = 2;
	
	public static int UPDATE_TYPE_DIC = 1;
	public static int UPDATE_TYPE_STRING = 2;
	public static int UPDATE_TYPE_INT = 3;
	
	//1:官方;2: 个人吐槽类型
	public static int COMMUNITY_TYPE_OFFICIAL = 1;//
	public static int COMMUNITY_TYPE_PERSON = 2;//
	
	public static int IS_NOT_CHARGE = 0;//
	public static int IS_CHARGE = 1;//
	
	
	
	public static int image_size_mode_compress = 0;
	public static int image_size_mode_crop = 1;
	public static int image_size_mode_width = 2;
	public static int image_size_mode_height = 3;
//	public static String image_size_mode_ = 4;
	public static String AVATAR_URL = "?imageView2/1/w/200/h/200";
	
//	0,活动，1，微课，2，系统消息，3 评论
	final public static int PUSH_BUSINESS_TYPE_ACTIVE = 0;
	final public static int PUSH_BUSINESS_TYPE_WEIKE = 1;
	final public static int PUSH_BUSINESS_TYPE_SYSTEM = 2;
	final public static int PUSH_BUSINESS_TYPE_COMMENT = 3;
	final public static int PUSH_BUSINESS_TYPE_GROUP_AGREE = 6;
	final public static int PUSH_BUSINESS_TYPE_GROUP_REJECT = 7;
	final public static int PUSH_BUSINESS_TYPE_GROUP_REMOVE = 8; 
	final public static int PUSH_BUSINESS_TYPE_ADMIN = 11;
	final public static String MIME_TYPE = "text/html; charset=UTF-8";
	
	final public static String APP_STORE_URL = WEBHOST + "/mb/appstore.html?url=server";
	final public static String REGIST_AGREEMENT = WEBHOST + "/mb/apage/agreement.html";
	final public static String APP_DOWNLOAD_URL = "http://www.teacherfamily.net";
	final public static float weike_header_scale = 0.536f;
	
	final public static int MAX_IMAGE_SELECT = 9;
	
//	1：可以报名; 0: 不能报名;2:已报名;3:报名已结束
	final public static int BAOMING_STATUS_DISABLE = 0;
	final public static int BAOMING_STATUS_ENABLE = 1;
	final public static int BAOMING_STATUS_HAS = 2;
	final public static int BAOMING_STATUS_OVER = 3;
	
	final public static int  IS_PRISED = 1;
	final public static int  NOT_PRISED = 0;
	
	final public static String LOGIN_EVENT_TYPE_LAOSHIBANG = "laoshibang";
	final public static String LOGIN_EVENT_TYPE_WECHAT = "wechat";
	final public static String LOGIN_EVENT_TYPE_SINA = "sina";
	final public static String LOGIN_EVENT_TYPE_QQ = "qq";
	
	final public static String VALIDATE_EVENT_TYPE_REGIST = "regist";
	final public static String VALIDATE_EVENT_TYPE_RESET = "reset";
	
	final public static String SHARE_EVENT_TYPE_QQ = "qq";
	final public static String SHARE_EVENT_TYPE_QZONE = "qzone";
	final public static String SHARE_EVENT_TYPE_WECHAT = "wechat";
	final public static String SHARE_EVENT_TYPE_WECHAT_TIMELINE = "wechat_timeline";
	final public static String SHARE_EVENT_TYPE_SINA = "sina";
	public static interface EVENT_ID{
		String LOGIN = "login";
		String REGIST = "regist";
		String RESET_PASSWORD = "reset_password";
		String VALIDATE = "validate";
		String ACTIVE_LOVE = "active_love";
		String ACTIVE_SHARE = "active_share";
		String ACTIVE_SEARCH = "active_search";
		String ACTIVE_CATEGORY = "active_category";
		String ACTIVE_PRICE_QUERY = "active_price_query";
		String ACTIVE_POSITION = "active_position";
		String ACTIVE_APPLY = "active_apply";
		String WEIKE_LOVE = "weike_love";
		String WEIKE_SHARE = "weike_share";
		String COMMUNITY_SHARE = "community_share";
		String WEIKE_SEARCH= "weike_search";
		String COMMUNITY_LOVE = "community_love";
		String COMMUNITY_PUBLISH = "community_publish";
		String COMMUNITY_COMMENT = "community_comment";
		String COMMUNITY_MESSAGE = "community_message";
		String PUSH_MESSAGE = "push_message";
		String COMMUNITY_DELETE = "comnunity_delete";
		String COMMENT_DELETE = "comment_delete";
		String INVITE_FRIEND= "invite_friend";
		String SYS_MESSAGE = "sys_message";
		String FEEDBACK = "feedback";
		String CLEAR_CACHE= "clear_cache";
		String CHECK_VERSION = "check_version";
		String MODIFY_PASSWORD = "modify_password";
		String UPDATE_USER = "update_user";
		String USER_INFO = "user_info";
		String LOGOUT = "logout";
		String FILE_UPLOAD = "file_upload";
		String ACTIVE_DETAIL = "active_detail";//,活动详情,0
		String WEIKE_DETAIL = "weike_detail";//,微课详情,0
		String COMMUNITY_DETAIL = "community_detail";//,吐槽详情,0
		String APP_STORE = "app_store";//应用商店,0
		String WEIKE_PLAY = "weike_play";//视频播放,0
		String MY_COMMUNITY = "my_community";
		String BIND_MOBILE = "bind_mobile";
		String MESSAGE_DETAIL = "message_detail";
	}
//	{key:, text:””}, 0:审核中,1:通过,2:审核未通过
	public static final int GROUP_APPLY_INIT = -1;
	public static final int GROUP_APPLY_ING = 0;
	public static final int GROUP_APPLY_SUCCESS = 1;
	public static final int GROUP_APPLY_FAILED = 2;
	public static final int GROUP_APPLY_EXIT = 3;
	
	public static final String GROUP_SEPEREATE =  " · " ;
	
	public static final int DIALOG_DOUBLE_CHOICE = 2;
	public static final int DIALOG_ONE_CHOICE = 1;
	
}
